package com.mg.common.vo;

/**
 * 响应枚举
 * @author tomyeung-李尐达
 */
public enum ResponseStatus {
    //service层错误
    SERVICE_ERROR(60001,"网络无连接"),
    //dao层错误
    DAO_ERROR(60002,"网络无连接"),
    FAIL(40001,"操作失败"),
    SUCCESS(200,"成功"),
    OTHER_UNKNOWN_ERROR(422333,"其他未知错误"),
    UNKNOWN_ERROR(222333,"未知错误")
    ;
    /**
     *响应状态码
     **/
    private Integer code;
    /**
     * 响应提示消息
     **/
    private String msg;

    ResponseStatus(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
